package com.example.consumer.controller;

import com.example.iface.ITestService;
import com.smart.thrift.annotation.ThriftReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @ThriftReference
    private ITestService testService;

    @GetMapping("/test")
    public String sayHello(){
        return testService.sayHello("zhangsan");
    }
}
